﻿using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SZ.Mech
{
    public class CompProperties_Flashstorm: CompProperties_CausesGameCondition
    {
        public CompProperties_Flashstorm()
        {
            compClass = typeof(CompCauseGameCondition_Flashstorm);
        }
    }

    public class CompCauseGameCondition_Flashstorm : CompCauseGameCondition
    {
        public new CompProperties_Flashstorm Props => (CompProperties_Flashstorm)props;

        public override void CompTick()
        {
            CompCanBeDormant compCanBeDormant = parent.GetComp<CompCanBeDormant>();
            if (compCanBeDormant.Awake)
            {
                base.CompTick();
            }
        }
    }
}
